import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/Login.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
    },
    {
      path:'/HomeView',
      component: () => import('../views/HomeView.vue'),
      redirect:'/HomeView/Welcome',
      children:[
        {
          //图
          path:'Welcome',
          component:() => import('../components/DishList/Welcome.vue')
        },
        {
          //首页
          path:'HomePage',
          component:() => import('../components/DishList/HomePage.vue')
        },
        {
          //班级管理
          path:'ClassManagement',
          component:() => import('../components/DishList/ClassManagement.vue')
        },
        {
          //出差记录
          path:'BusinessTripDiary',
          component:() => import('../components/DishList/BusinessTripDiary.vue')
        },
        {
          //请假记录
          path:'LeaveRecord',
          component:() => import('../components/DishList/LeaveRecord.vue')
        },
        {
          //考勤统计
          path:'AttendanceStatistics',
          component:() => import('../components/DishList/AttendanceStatistics.vue')
        },
        {
          //用户管理
          path:'UserManagement',
          component:() => import('../components/DishList/UserManagement.vue')
        },
        {
          //学生档案
          path:'StudentRecords',
          component:() => import('../components/DishList/StudentRecords.vue')
        },
        {
          //日志系统
          path:'LoggingSystem',
          component:() => import('../components/DishList/LoggingSystem.vue')
        },
        {
          //学生日志管理
          path:'StudentLogManagement',
          component:() => import('../components/DishList/StudentLogManagement.vue')
        },
        {
          //审核系统
          path:'ApprovalSystem',
          component:() => import('../components/DishList/ApprovalSystem.vue')
        },
        {
          //学生请假记录
          path:'StudentLeaveRecord',
          component:() => import('../components/DishList/StudentLeaveRecord.vue')
        },
        {
          //项目管理
          path:'ProjectManagement',
          component:() => import('../components/DishList/ProjectManagement.vue')
        },
        {
          //部门管理
          path:'DepartmentManagement',
          component:() => import('../components/DishList/DepartmentManagement.vue')
        },
        {
          //学科管理
          path:'SubjectManagement',
          component:() => import('../components/DishList/SubjectManagement.vue')
        },
        {
          //销售统计
          path:'SalesStatistics',
          component:() => import('../components/DishList/SalesStatistics.vue')
        },
        {
          //学生数据
          path:'StudentData',
          component:() => import('../components/DishList/StudentData.vue')
        },
        {
          //批量录入
          path:'BulkEntry',
          component:() => import('../components/DishList/BulkEntry.vue')
        },
        {
          //个人信息
          path:'PersonalInformation',
          component:() => import('../components/DishList/PersonalInformation.vue')
        },
        {
          //系统设置
          path:'SystemSettings',
          component:() => import('../components/DishList/SystemSettings.vue')
        },
        {
          //预招生
          path:'preEnrollment',
          component:() => import('../components/StudentRecords/preEnrollment.vue'),
        },
        {
          //在习生
          path:'graduate',
          component:() => import('../components/StudentRecords/graduate.vue'),
        }
      ]
    }
  ],
})

export default router
